// this main.cpp

#include <iostream>
#include <iterator>
#include <algorithm>
#include <cmath>
#include <stdio.h>
#include <stdlib.h>
#include <limits>       // std::numeric_limits

int main()
{
    double x = 5.0;
    double inf = -std::numeric_limits<double>::infinity();
    double nan = std::numeric_limits<double>::quiet_NaN();
    std::cout << "exp(-inf)=" << exp(inf) << " exp(nan)=" << exp(nan) << " nan+1=" << nan+1 << std::endl;
    system("pause");
}

